package com.rzjm.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 水卡充值记录对象 device_water_card_recharge_record
 *
 * @author ruoyi
 * @date 2025-01-07
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("device_water_card_recharge_record")
public class DeviceWaterCardRechargeRecord implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 水卡id
     */
    private Integer cardId;

    /**
     * 会员id
     */
    private Integer wxUserId;

    /**
     * 会员手机号
     */
    private String phoneNum;

    /**
     * 记录类型 0 - 开会员预充值 1 - 后期充值  2 - 消费使用
     */
    private Integer recordType;

    /**
     * 充值前剩余金额
     */
    private BigDecimal beforeMoney;

    /**
     * 当前充值金额
     */
    private BigDecimal rechargeMoney;

    /**
     * 充值时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 收款人id
     */
    private Integer opSysUserId;

    /**
     * 收款人名字
     */
    private String opSysUserName;

    /**
     * 备注信息
     */
    private String remark;

}
